package org.oslims.client.uicomponents;

import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.DockLayoutPanel.Direction;

public class WidgetUtils {

	public static void removeCenterWidget(DockLayoutPanel appPanel) {
		for (int i = 0; i < appPanel.getWidgetCount(); i++) {
			if (appPanel.getWidgetDirection(appPanel.getWidget(i)) == Direction.CENTER) {
				appPanel.remove(i);
			}
		}
	}
}
